home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Prog
/
M
/
MacOberon241.cpt
/
MacOberon 2.4(1)
/
MacMenus.Mod
(
.txt
)
< prev
next >
Wrap
Oberon Text
|
1991-10-17
|
4KB
|
69 lines
Syntax10.Scn.Fnt
MODULE MacMenus; (*Macintosh OS Interface Module for MacOberon 2.2, Michael Franz, 9.10.91*)
IMPORT
TY:= MacTypes;
CONST
(* Mark symbol for MarkItem *)
noMark= 0;
(* Menu defProc messages. *)
mDrawMsg*= 0; mChooseMsg*= 1; mSizeMsg*= 2;
(* Resource ID of standard menu definition procedure. *)
textMenuProc*= 0;
hMenuCmd*= 1BH; (* itemCmd = 0x001B ==> hierarchical menu attached to this item *)
hierMenu*= -1; (* a hierarchical menu - for InsertMenu call *)
mPopUpMsg*= 3; (* menu defProc message *)
mctAllItems*= -98; (* search for all Items for the given ID *)
TYPE
Style= INTEGER; (* SET OF StyleItem *)
MenuInfo*= RECORD
menuID*: INTEGER;
menuWidth*, menuHeight*: INTEGER;
menuProc: TY.ProcHandle;
enableFlags*: SET;
menuData*: TY.Str255
END;
MenuPtr*= POINTER- TO MenuInfo;
MenuHandle*= POINTER- TO RECORD p*: MenuPtr END;
PROCEDURE - InitMenus*() 0A9H, 030H;
PROCEDURE - NewMenu*(menuID: INTEGER; menuTitle: TY.Str255): MenuHandle 0A9H, 031H;
PROCEDURE - GetMenu*(resourceID: INTEGER): MenuHandle 0A9H, 0BFH;
PROCEDURE - DisposeMenu*(theMenu: MenuHandle) 0A9H, 032H;
PROCEDURE - AppendMenu*(menu: MenuHandle; data: TY.Str255) 0A9H, 033H;
PROCEDURE - AddResMenu*(theMenu: MenuHandle; theType: TY.ResType) 0A9H, 04DH;
PROCEDURE - InsertResMenu*(theMenu: MenuHandle; theType: TY.ResType; afterItem: INTEGER) 0A9H, 051H;
PROCEDURE - InsertMenu*(theMenu: MenuHandle; beforeID: INTEGER) 0A9H, 035H;
PROCEDURE - DrawMenuBar*() 0A9H, 037H;
PROCEDURE - DeleteMenu*(menuID: INTEGER) 0A9H, 036H;
PROCEDURE - ClearMenuBar*() 0A9H, 034H;
PROCEDURE - GetNewMBar*(menuBarID: INTEGER): TY.Handle 0A9H, 0C0H;
PROCEDURE - GetMenuBar*(): TY.Handle 0A9H, 03BH;
PROCEDURE - SetMenuBar*(menuList: TY.Handle) 0A9H, 03CH;
PROCEDURE - InsMenuItem*(theMenu: MenuHandle; itemString: TY.Str255; afterItem: INTEGER) 0A8H, 026H;
PROCEDURE - DelMenuItem*(theMenu: MenuHandle; item: INTEGER) 0A9H, 052H;
PROCEDURE - MenuKey*(ch: TY.UnpackedChar): LONGINT 0A9H, 03EH;
PROCEDURE - HiliteMenu*(menuID: INTEGER) 0A9H, 038H;
PROCEDURE - SetItem*(theMenu: MenuHandle; item: INTEGER; itemString: TY.Str255) 0A9H, 047H;
PROCEDURE - GetItem*(theMenu: MenuHandle; item: INTEGER; VAR itemString: TY.Str255) 0A9H, 046H;
PROCEDURE - DisableItem*(theMenu: MenuHandle; item: INTEGER) 0A9H, 03AH;
PROCEDURE - EnableItem*(theMenu: MenuHandle; item: INTEGER) 0A9H, 039H;
PROCEDURE - CheckItem*(theMenu: MenuHandle; item: INTEGER; checked: BOOLEAN) 0A9H, 045H;
PROCEDURE - SetItemMark*(theMenu: MenuHandle; item: INTEGER; markChar: TY.UnpackedChar) 0A9H, 044H;
PROCEDURE - GetItemMark*(theMenu: MenuHandle; item: INTEGER; VAR markChar: TY.UnpackedChar) 0A9H, 043H;
PROCEDURE - SetItemIcon*(theMenu: MenuHandle; item: INTEGER; icon: TY.UnpackedByte) 0A9H, 040H;
PROCEDURE - GetItemIcon*(theMenu: MenuHandle; item: INTEGER; VAR iconNum: TY.UnpackedByte) 0A9H, 03FH;
PROCEDURE - SetItemStyle*(theMenu: MenuHandle; item, chStyle: INTEGER) 0A9H, 042H;
PROCEDURE - GetItemStyle*(theMenu: MenuHandle; item: INTEGER; VAR chStyle: Style) 0A9H, 041H;
PROCEDURE - CalcMenuSize*(theMenu: MenuHandle) 0A9H, 048H;
PROCEDURE - CountMItems*(theMenu: MenuHandle): INTEGER 0A9H, 050H;
PROCEDURE - GetMHandle*(menuID: INTEGER): MenuHandle 0A9H, 049H;
PROCEDURE - FlashMenuBar*(menuID: INTEGER) 0A9H, 04CH;
PROCEDURE - SetMenuFlash*(count: INTEGER) 0A9H, 04AH;
PROCEDURE - MenuSelect*(startPt: TY.Point): LONGINT 0A9H, 03DH;
PROCEDURE - InitProcMenu*(resID: INTEGER) 0A8H, 008H;
PROCEDURE - GetItemCmd*(theMenu: MenuHandle; item: INTEGER; VAR cmdChar: TY.UnpackedChar) 0A8H, 04EH;
PROCEDURE - SetItemCmd*(theMenu: MenuHandle; item: INTEGER; cmdChar: TY.UnpackedChar) 0A8H, 04FH;
PROCEDURE - PopUpMenuSelect*(menu: MenuHandle; top, left, popUpItem: INTEGER): LONGINT 0A8H, 00BH;
PROCEDURE - MenuChoice*(): LONGINT 0AAH, 066H;
PROCEDURE - MBarHeight*(): INTEGER 03EH, 0B8H, 00BH, 0AAH; (* MOVE.W $0BAA, (A7) *)
END MacMenus.